<template>
  <div class="box">
    <!-- 头部组件 -->
    <HmHeader />
    <!-- 中间内容组件 -->
    <HmMain />
    <!-- 尾部组件 -->
    <HmFooter />
  </div>
</template>

<script>
import HmHeader from './components/HmHeader.vue'
import HmMain from './components/HmMain.vue'
import HmFooter from './components/HmFooter.vue'

export default {
   // 局部注册
   components: {
    HmHeader,
    HmMain,
    HmFooter
   }
}
</script>

<style lang="less">
.box{
  width: 800px;
  height: 800px;
  background-color: red;
}
</style>